package 字符串;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        char[] s;
        Scanner s1 = new Scanner(System.in);
        s = ((s1.nextLine()).toLowerCase()).replaceAll("[^a-z^A-Z]", "").toCharArray();
        System.out.println(s);
        int count = 0;
        for (int j = 97; j <= 122; j++) {
            for (int i = 0; i < s.length; i++) {
                if ((char) j == s[i]) {
                    count++;
                }
            }
            if (count == 0) {
            } else {
                System.out.print(((char) ('a' + j - 97)) + "=" + count + "  ");
                count = 0;
            }
        }
    }
}